package com.cuijq.ms.chaindesign.v3;

/**
 * @author by CuiJQ
 * @Classname Demo
 * @Description Demo Description
 * @Date 2021/5/29 10:19
 */
public class Demo {

  public static void main(String[] args) {
    HandlerChain chain = new HandlerChain();
    chain.addHandler(new HandlerA());
    chain.addHandler(new HandlerB());
    chain.handle();
  }
}
